<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href='<?php echo base_url()?>'>
<link rel="stylesheet" type="text/css" href="public/common/css/common.css"/>
<link rel="stylesheet" type="text/css" href="public/admin/css/admin.css"/>
<script type="application/javascript" src="public/common/js/jquery.js"></script>
</head>
<body>
	<div class="body">
    	<?php echo $this->position->get_position();?>
        <div class="body_center">
			<form action="<?php echo site_url('admin/backup/do_backup')?>" method="post">
        	<table class="table" style="margin-bottom:0px;">
            	<tr><th>文件名</th><th>备份时间</th><th>操作</th></tr>
				<?php if(empty($backup_file)):?>
				<tr><td colspan="3" align="center">没有备份文件</td></tr>
				<?php else:?>
				<?php foreach($backup_file as $value):?>
                <tr>
					<td align="center"><?php echo $value?></td>
					<td align="center"><?php echo date('Y-m-d H:i:s',substr($value,7,10))?></td>
					<td align='center'><a href="<?php echo site_url('admin/backup/do_repair/'.urlencode($value))?>">恢复</a> | <a href="<?php echo site_url('admin/backup/delete_backup/'.urlencode($value))?>">删除</a></td>
				</tr>
                <?php endforeach;?>
				
				<?php endif;?>
            </table>
        </div>
		</form>
    </div>
</body>
</html>